<script setup lang='ts'>
import { useUserStore } from "@/stores/modules/user";
import ModelSize from "./components/ModelSize.vue";
import Language from "./components/Language.vue";
import SearchMenu from "./components/SearchMenu.vue";
import ThemeSetting from "./components/ThemeSetting.vue";
import Message from "./components/Message.vue";
import FullScreen from "./components/FullScreen.vue";
import Avatar from "./components/Avatar.vue";
import ThemeDrawer from '../ThemeDrawer/index.vue'

const useStore=useUserStore()
import {ref} from 'vue'

</script>

<template>
  <div class="tool-bar-ri">
    <div class="header-icon">
      <ModelSize />
      <Language />
      <SearchMenu />
      <ThemeSetting @drawerVisible="drawerVisibleClick"/>
      <Message />
      <FullScreen />
    </div>
    <span class="username">{{useStore.name}}</span>
    <Avatar />
  </div>
 
</template>

<style lang="scss" scoped>
.tool-bar-ri {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 25px;
  .header-icon {
    display: flex;
    align-items: center;
    & > * {
      margin-left: 21px;
      color: var(--el-header-text-color);
    }
  }
  .username {
    margin: 0 20px;
    font-size: 15px;
    color: var(--el-header-text-color);
  }
}
</style>
